// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse>div>.el-submenu>.el-submenu__title .el-submenu__icon-arrow {
  display: none;
}

// 全局圆角设置
.el-button,
.el-input__inner,
.el-select .el-input__inner,
.el-textarea__inner,
.el-dialog,
.el-card,
.el-menu-item,
.el-submenu__title {
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

// 按钮样式优化
.el-button {
  &--primary {
    background: linear-gradient(45deg, $sports-primary, lighten($sports-primary, 10%));
    border: none;
    box-shadow: 0 4px 15px rgba($sports-primary, 0.2);

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba($sports-primary, 0.3);
      background: linear-gradient(45deg, lighten($sports-primary, 5%), lighten($sports-primary, 15%));
    }
  }

  &--success {
    background: linear-gradient(45deg, $sports-accent, lighten($sports-accent, 10%));
    border: none;
    box-shadow: 0 4px 15px rgba($sports-accent, 0.2);

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba($sports-accent, 0.3);
      background: linear-gradient(45deg, lighten($sports-accent, 5%), lighten($sports-accent, 15%));
    }
  }
}

// 卡片样式优化
.el-card {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  background: rgba(255, 255, 255, 0.9);

  &:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
  }
}

// 表格样式优化
.el-table {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);

  th {
    background: linear-gradient(45deg, rgba($sports-secondary, 0.8), rgba($sports-secondary, 0.9)) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba($sports-secondary, 0.1) !important;
  }

  tr:hover>td {
    background-color: rgba($sports-secondary, 0.05) !important;
  }
}

// 输入框样式优化
.el-input__inner {
  &:focus {
    border-color: $sports-primary !important;
    box-shadow: 0 0 0 2px rgba($sports-primary, 0.1);
  }
}

// 菜单样式优化
.el-menu {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);

  .el-menu-item {

    &:hover,
    &:focus {
      background: linear-gradient(45deg, rgba($sports-primary, 0.05), rgba($sports-primary, 0.1)) !important;
    }

    &.is-active {
      background: linear-gradient(45deg, $sports-primary, lighten($sports-primary, 10%)) !important;
      color: white !important;
    }
  }
}